/** 
 * 养老家属端API接口
 * 基于 http://nursing.mguit.com
 * 响应格式: { code: 0, msg: "success", data: {}, url: null, wait: 3 }
 */
import request from './request.js'
// ========== 用户认证相关 ==========
// 用户登录 (不需要token)
export const apiLogin = data => request.post('/api/member/login', data, false)
// 获取用户列表和详细信息 (登录成功后调用)
export const apiGetUserList = data => request.post('/api/member/info_uid', data)
// ========== 首页 ==========
// 首页活动记录
export const apiGetHomeData = data => request.post('/api/member/index', data)
// 首页服药记录
export const apiGetHomeMedicine = data => request.post('/api/member/medicine', data)
// ========== 老人管理 ==========
// 老人管理
export const apiGetOldmanList = data => request.post('/api/member/member', data)
// 老人详情
export const apiGetOldmanDetail = data => request.post('/api/member/detail', data)
// ========== 合同缴费 ==========
// 合同管理
export const apiGetContractList = data => request.post('/api/member.contracts/index', data)
// 合同管理签署
export const apiGetContractSignList = data => request.post('/api/member.contracts/sign', data)
// 合同管理未签署
export const apiGetContractUnsignList = data => request.post('/api/member.contracts/detail', data)
// 缴费管理
export const apiGetPaymentList = data => request.post('/api/member.contracts/index1', data)
// ========== 通用接口 ==========
// 支付接口
export const apiGetPay = data => request.post('/api/pay/huifupay', data)
// 静默登录
export const apiDefaultLogin = data => request.post('/api/user/defaultLogin', data, false)





